package com.bsj.media.media.G726;

public class g726_state_s {
	/*! The bit rate */
	int rate;
	/*! The external coding, for tandem operation */
	//int ext_coding;
	/*! The number of bits per sample */
	int bits_per_sample;
	/*! One of the G.726_PACKING_xxx options */
	//int packing;

	/*! Locked or steady state step size multiplier. */
	int yl;
	/*! Unlocked or non-steady state step size multiplier. */
	short yu;
	/*! short term energy estimate. */
	short dms;
	/*! Long term energy estimate. */
	short dml;
	/*! Linear weighting coefficient of 'yl' and 'yu'. */
	short ap;

	/*! Coefficients of pole portion of prediction filter. */
	short a[]; //2
	/*! Coefficients of zero portion of prediction filter. */
	short b[]; //6
	/*! Signs of previous two samples of a partially reconstructed signal. */
	short pk[];//2
	/*! Previous 6 samples of the quantized difference signal represented in
	an internal floating point format. */
	short dq[];//6
	/*! Previous 2 samples of the quantized difference signal represented in an
	internal floating point format. */
	short sr[];//2
	/*! Delayed tone detect */
	int td;

	/*! \brief The bit stream processing context. */
	bitstream_state_s bs;
		
	public g726_state_s() {
		a = new short[2];
		b = new short[6];
		pk = new short[2];
		dq = new short[6];
		sr = new short[2];
		bs = new bitstream_state_s();
	}

	public int getRate() {
		return rate;
	}

	public void setRate(int rate) {
		this.rate = rate;
	}

	public int getBits_per_sample() {
		return bits_per_sample;
	}

	public void setBits_per_sample(int bits_per_sample) {
		this.bits_per_sample = bits_per_sample;
	}

	public int getYl() {
		return yl;
	}

	public void setYl(int yl) {
		this.yl = yl;
	}

	public short getYu() {
		return yu;
	}

	public void setYu(short yu) {
		this.yu = yu;
	}

	public short getDms() {
		return dms;
	}

	public void setDms(short dms) {
		this.dms = dms;
	}

	public short getDml() {
		return dml;
	}

	public void setDml(short dml) {
		this.dml = dml;
	}

	public short getAp() {
		return ap;
	}

	public void setAp(short ap) {
		this.ap = ap;
	}

	public short[] getA() {
		return a;
	}

	public void setA(short[] a) {
		this.a = a;
	}

	public short[] getB() {
		return b;
	}

	public void setB(short[] b) {
		this.b = b;
	}

	public short[] getPk() {
		return pk;
	}

	public void setPk(short[] pk) {
		this.pk = pk;
	}

	public short[] getDq() {
		return dq;
	}

	public void setDq(short[] dq) {
		this.dq = dq;
	}

	public short[] getSr() {
		return sr;
	}

	public void setSr(short[] sr) {
		this.sr = sr;
	}

	public int getTd() {
		return td;
	}

	public void setTd(int td) {
		this.td = td;
	}

	public bitstream_state_s getBs() {
		return bs;
	}

	public void setBs(bitstream_state_s bs) {
		this.bs = bs;
	}
	
}
